﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HVACWebService.Cloud.Able;

namespace HVACWebService.Business
{
    public class SendToDeivceService
    {
        /// <summary>
        /// 发送数据到设备
        /// </summary>
        /// <param name="openId"></param>
        /// <param name="sendData"></param>
        /// <param name="physicalDeviceId"></param>
        /// <param name="deviceId"></param>
        /// <param name="mesageCode"></param>
        public byte[] SendToDevice(string openId, string sendData, string physicalDeviceId, string deviceId,
            string mesageCode)
        {
            var ableDevice = new AbleDeviceCloudService();
            return ableDevice.SendToDevice(openId, sendData, physicalDeviceId, deviceId, mesageCode);

        }
    }
}